package com.example.service;

import com.example.dto.UserDto;
import com.example.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hotta
 * @since 2023-05-31
 */
public interface UserService extends IService<User> {

    Map<String, Object> login(User user);

    Map<String, Object> getUserInfo(String token);

    void logout(String token);

    void addUser(UserDto userDto);

    UserDto getUserById(Long id);

    void updateUser(UserDto userDto);

    void deleteUserById(Long id);
}
